package wqh.domain;

/**
 * Created by devts on 2016/9/26.
 */
public class Sensor {

    private Integer id;
    private String name;
    private String detail;
    private Integer type;
    private String picture;
    private String description;
    private Integer parent_id;
    private Byte level;

    public Sensor()
    {

    }

    public Sensor(String name, Integer parent_id, Byte level) {
        this.name = name;
        this.parent_id = parent_id;
        this.level = level;
        this.type = null;
        this.picture = null;
        this.description = null;
        this.detail = null;
    }

    public Sensor(Integer id, String name, Integer parent_id, Byte level) {
        this.id = id;
        this.name = name;
        this.parent_id = parent_id;
        this.level = level;
        this.type = null;
        this.picture = null;
        this.description = null;
        this.detail = null;
    }

    public Sensor(String name, String detail, Integer type, String picture, String description, Integer parent_id, Byte level) {
        this.name = name;
        this.detail = detail;
        this.type = type;
        this.picture = picture;
        this.description = description;
        this.parent_id = parent_id;
        this.level = level;
    }

    public Sensor(Integer id, String name, String detail, Integer type, String picture, String description, Integer parent_id, Byte level) {
        this.id = id;
        this.name = name;
        this.detail = detail;
        this.type = type;
        this.picture = picture;
        this.description = description;
        this.parent_id = parent_id;
        this.level = level;
    }

    @Override
    public String toString() {
        return "Sensor{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", detail='" + detail + '\'' +
                ", type=" + type +
                ", picture='" + picture + '\'' +
                ", description='" + description + '\'' +
                ", parent_id=" + parent_id +
                ", level=" + level +
                '}';
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
